// 8052 sfr address declare
sfr   ACC = 0xf0;
sfr   B   = 0x10;
sfr   PSW = 0xD0;
sfr   SP  = 0x81;
sfr   DPL = 0x82;
sfr   DPH = 0x83;
sfr   P0  = 0x80;
sfr   P1  = 0x90;
sfr   P2  = 0xA0;
sfr   P3  = 0xB0;
sfr   IE  = 0xA8;
sfr   IP  = 0xB8;
sfr   PCON = 0x87;
sfr   TCON = 0x88;
sfr   TMOD = 0x89;
sfr   TL0 = 0x8A;
sfr   TL1 = 0x8B;
sfr   TH0 = 0x8C;
sfr   TH1 = 0x8D;
sfr   T2CON = 0xC8;
sfr   RCAP2L = 0xCA;
sfr   RCAP2H = 0xCB;
sfr   TL2 = 0xCC;
sfr   TH2 = 0xCD;
sfr   SCON = 0x98;
sfr   SBUF = 0x99;

//----------PSW-------------
sbit  CY = 0xD7;
sbit  AC = 0xD6;
sbit  F0 = 0xD5;
sbit  RS1 = 0xD4;
sbit  RS0 = 0xD3;
sbit  OV = 0xD2;
sbit  P = 0xD0;

//----------TCON-------------
sbit  TF1 = 0x8F;
sbit  TR1 = 0x8E;
sbit  TF0 = 0x8D;
sbit  TR0 = 0x8C;
sbit  IE1 = 0x8B;
sbit  IT1 = 0x8A;
sbit  IE0 = 0x89;
sbit  IT0 = 0x88;

//----------T2CON-------------
sbit  TF2 = 0xCF;
sbit  EXF2 = 0xCE;
sbit  RCLK = 0xCD;
sbit  TCLK = 0xCC;
sbit  EXEN2 = 0xCB;
sbit  TR2 = 0xCA;
sbit  CT2 = 0xC9;
sbit  CPRL2 = 0xC8;

//----------PCON--------------
sbit  SMOD = 0x8E;
sbit  GF1 = 0x8A;
sbit  GF0 = 0x89;
sbit  PD = 0x88;
sbit  IDL = 0x87;

//----------SCON--------------
sbit  SM0 = 0x9F;
sbit  SM1 = 0x9E;
sbit  SM2 = 0x9D;
sbit  REN = 0x9C;
sbit  TB8 = 0x9B;
sbit  RB8 = 0x9A;
sbit  TI = 0x99;
sbit  RI = 0x98;

//----------IE----------------
sbit  EA = 0xAF;
sbit  ET2 = 0xAD;
sbit  ES = 0xAC;
sbit  ET1 = 0xAB;
sbit  EX1 = 0xAA;
sbit  ET0 = 0xA9;
sbit  Ex0 = 0xA8;

//----------IP----------------
sbit  PT2 = 0xBD;
sbit  PS = 0xBC;
sbit  PT1 = 0xBB;
sbit  PX1 = 0xBA;
sbit  PT0 = 0xB9;
sbit  PX0 = 0xB8;

//----------P0----------------
sbit  P0_0 = P0^0;
sbit  P0_1 = P0^1;
sbit  P0_2 = P0^2;
sbit  P0_3 = P0^3;
sbit  P0_4 = P0^4;
sbit  P0_5 = P0^5;
sbit  P0_6 = P0^6;
sbit  P0_7 = P0^7;

//----------P1----------------
sbit  OSD_SCL = P1^0;
sbit  SCL_PIN = P1^0;
sbit  ISCL = P1^0;
sbit  OSD_SDA = P1^1;
sbit  SDA_PIN = P1^1;
sbit  ISDA = P1^1;
sbit  STROBE1_PIN = P1^0;  //ic4094
sbit  DATA_PIN = P1^1; 
sbit  CLK_PIN = P1^2;
sbit  OE_PIN = P1^3;
sbit  STROBE2_PIN = P1^4;
sbit  COLUMN1_PIN = P1^4;
sbit  COLUMN2_PIN = P1^5;
sbit  COLUMN3_PIN = P1^6;
sbit  COLUMN4_PIN = P1^7;
sbit  CS_PIN = P1^0;       //93c66
sbit  XSCK_PIN = P1^1;
sbit  XSDO_PIN = P1^2;
sbit  XSDI_PIN = P1^3;
sbit  P1_0 = P1^0;
sbit  P1_1 = P1^1;
sbit  P1_2 = P1^2;
sbit  P1_3 = P1^3;
sbit  P1_4 = P1^4;
sbit  P1_5 = P1^5;
sbit  P1_6 = P1^6;
sbit  P1_7 = P1^7;

//------------P2---------------
sbit  PULSE_PIN = P2^0;    //pulse input
sbit  P2_0 = P2^0;
sbit  P2_1 = P2^1;
sbit  P2_2 = P2^2;
sbit  P2_3 = P2^3;
sbit  P2_4 = P2^4;
sbit  P2_5 = P2^5;
sbit  P2_6 = P2^6;
sbit  P2_7 = P2^7;

//------------P3----------------
sbit  P3_0 = P3^0;
sbit  P3_1 = P3^1;
sbit  P3_2 = P3^2;
sbit  P3_3 = P3^3;
sbit  P3_4 = P3^4;
sbit  P3_5 = P3^5;
sbit  P3_6 = P3^6;
sbit  P3_7 = P3^7;

